package com.king.framework.base.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 树基础类
 * 
 * @author lenovo
 *
 */
public class YyTreeEntity extends YyBaseEntity {

	//@JsonSerialize(using= ToStringSerializer.class)
	@TableField("parentid")
	public Long parentid;

	@TableField(exist = false)
	private String parentname;

	@TableField("nodecode")
	public String nodecode;

	@TableField("nodename")
	public String nodename;

	@TableField("nodepath")
	public String nodepath;

	@TableField("showorder")
	public Integer showorder;


	@JsonSerialize(using= ToStringSerializer.class)
	public Long getParentid() {
		return parentid;
	}

	public void setParentid(Long parentid) {
		this.parentid = parentid;
	}

	public String getParentname() {
		return parentname;
	}

	public void setParentname(String parentname) {
		this.parentname = parentname;
	}

	public String getNodecode() {
		return nodecode;
	}

	public void setNodecode(String nodecode) {
		this.nodecode = nodecode;
	}

	public String getNodename() {
		return nodename;
	}

	public void setNodename(String nodename) {
		this.nodename = nodename;
	}

	public String getNodepath() {
		return nodepath;
	}

	public void setNodepath(String nodepath) {
		this.nodepath = nodepath;
	}

	public Integer getShoworder() {
		return showorder;
	}

	public void setShoworder(Integer showorder) {
		this.showorder = showorder;
	}
	
	
}
